package com.lx.cozeai.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("message")
public class ChatMessage {
    @TableId(value = "id", type = IdType.AUTO)
    private int id;
    @TableField("content")
    private String content;
    @TableField("uid")
    private int uid;
    @TableField("time")
    private LocalDateTime time;
    @TableField("type")
    private int type;
}
